import { createRouter, createWebHistory } from 'vue-router';
import Register from '../components/Register.vue';
import Login from '../components/Login.vue';
import Home from '../components/Home.vue';
import KnowledgeBases from '../components/KnowledgeBases.vue';
import KnowledgeBaseDetail from '../components/KnowledgeBaseDetail.vue';
import Chat from '../components/Chat.vue';
import roleAgentList from '../pages/roleAgent/roleAgentList.vue'
import roleAgentInfo from '../pages/roleAgent/roleAgentInfo.vue'

import soundList from '../pages/soundBank/soundList.vue'
import soundInfo from '../pages/soundBank/soundInfo.vue'

import deviceList from '../pages/deviceBank/deviceList.vue'
import deviceInfo from '../pages/deviceBank/deviceInfo.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/knowledge-bases',
    name: 'KnowledgeBases',
    component: KnowledgeBases
  },
  {
    path: '/knowledge-base/:id',
    name: 'KnowledgeBaseDetail',
    component: KnowledgeBaseDetail
  },
  {
    path: '/Chat',
    name: 'Chat',
    component: Chat
  },


  { path: '/roleAgentList', name: 'roleAgentList', component: roleAgentList },
  { path: '/roleAgentInfo/:id', name: 'roleAgentInfo', component: roleAgentInfo },


  { path: '/deviceList', name: 'deviceList', component: deviceList },
  { path: '/deviceInfo/:id', name: 'deviceInfo', component: deviceInfo },


  { path: '/soundList', name: 'soundList', component: soundList },
  { path: '/soundInfo/:id', name: 'soundInfo', component: soundInfo },
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;



